<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue测试</title>
		<script type="text/javascript" src="../js/vue.js">
			
		</script>
	</head>
	<p id="app">{{sum()}},{{a.name}},{{c[0].brand}}</p>
	<body>
		<script>
			new Vue({
				el:"#app",
				data:{
					a:{
						name:"jack",
						age:15
					},
					c:[{brand:"porche",price:"10000"},{color:"red",model:"911Carrera"}]
				},
				methods:{
					sum:function(){
						return 10
					}
				}
			})
		</script>
	</body>
</html>
